projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f68df9e
)
Fix a braino.
author
Tor Lillqvist
<tml@src.gnome.org>
Sun, 12 Dec 2004 22:22:36 +0000
(22:22 +0000)
committer
Tor Lillqvist
<tml@src.gnome.org>
Sun, 12 Dec 2004 22:22:36 +0000
(22:22 +0000)
gtk/gtkfilesystemwin32.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilesystemwin32.c
b/gtk/gtkfilesystemwin32.c
index 8687a9e08a6303c9d1d4ae5ee503cb27c1980888..d63e2bd6530827fbdbb8e88464ed3955a0c5fe06 100644
(file)
--- a/
gtk/gtkfilesystemwin32.c
+++ b/
gtk/gtkfilesystemwin32.c
@@
-771,7
+771,7
@@
gtk_file_system_win32_parse (GtkFileSystem *file_system,
else if (g_ascii_isalpha (str[0]) &&
str[1] == ':' &&
G_IS_DIR_SEPARATOR (str[2]))
- folder_part = g_str
dup_printf ("%c:" G_DIR_SEPARATOR_S, str[0]
);
+ folder_part = g_str
ndup (str, last_slash - str + 1
);
else
folder_part = g_strndup (str, last_slash - str);
@@
-1492,8
+1492,6
@@
filename_is_drive_root (const char *filename)
{
guint len = strlen (filename);
- /* accept both forms */
-
return (len == 3 && filename[1] == ':' && G_IS_DIR_SEPARATOR (filename[2]));
}